import cv2

# 读取图像
img = cv2.imread("C:\\Users\\ASUS\\Downloads\\f72d782b9a9dd81c9a534a86174220d3.jpeg")

# 将图像缩放到32x32像素
resized_img = cv2.resize(img, (32, 32), interpolation=cv2.INTER_AREA)

# 保存压缩后的图像
cv2.imwrite('C:\\Users\\ASUS\\Downloads\\f72d782b9a9dd81c9a534a86174220d3.jpeg', resized_img)